<?php
namespace BP\En;
require_once("java/util/ArrayList.php");
require_once("java/util/List.php");
class RefMethods extends ArrayList {
	protected static $serialVersionUID;	// long
	public static function __staticinit() { // static class members
		self::$serialVersionUID = 1;
	}
	public function Add ($en) // [RefMethod en]
	{
		if ($this->IsExits($en))
		{
			return ;
		}
		$en->Index = $this->size();
		$this->add($en);
	}
	public function IsExits ($en) // [RefMethod en]
	{
		foreach ($this as $dtl) 		{
			if ($dtl->ClassMethodName->equals($en->ClassMethodName))
			{
				return  TRUE ;
			}
		}
		return  FALSE ;
	}
	public function getCountOfVisable () 
	{
		$i = 0;
		foreach ($this as $rm) 		{
			if ($rm->Visable)
			{
				++$i;
			}
		}
		return $i;
	}
	public function getItem ($index) // [int index]
	{
		return $this->get($index);
	}
	public function ToJavaList () 
	{
		return $this;
	}
}
RefMethods::__staticinit(); // initialize static vars for this class on load
?>
